PrizmDoc v12.0 - November 15, 2016
Optimizing Cache Performance for Multi-Server Environments

Viewing Sessions & Optimizing Cache Performance

PrizmDoc Application Services (PAS) utilizes cache locations that don't need to be on the same server. If multiple PrizmDoc Application Services servers are in use, they can be configured to use the same central filesystem and database so that cached data is shared between servers.

A given Viewing Session is cached by either PrizmDoc Server or by PrizmDoc Application Services depending on how it was created. Sessions created using a documentId are stored in PrizmDoc Application Services' central cache as a pre-converted viewing package. As these sessions are not cached in PrizmDoc Server, they will not be directly accessible through the PrizmDoc Server API.

Example
Copy Code
POST http://localhost:3000/ViewingSession
Content-Type: application/json
{
    "source": {
        "type": "document",
        "fileName": "sample.doc"
        "documentId": "doc_9495837910qc"
    }
}

Note that viewing packages can be created either explicitly via the Pre-Conversion API or, as in the above example, implicitly by providing a documentId in the Viewing Session API.

Sessions created without a documentId are not stored as viewing packages and are cached by PrizmDoc Server as normal according to the server configuration and request parameters.

Example
Copy Code
POST http://localhost:3000/ViewingSession
Content-Type: application/json
{
    "source": {
        "type": "document",
        "fileName": "sample.doc"
    }
}

Note that if PrizmDoc Server is running in Multi-Server Mode, PrizmDoc Application Services handles the use of affinity hints internally and does not require the user to perform anything additional for optimized PrizmDoc Server cache performance.

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback